<?php
namespace Controller;

/**
 * Class TaskController
 * @package Controller
 */
class TaskController extends ApiController {

    //获取数据列表
    public function get_list() {
        $data = array(
            array(
                'title' => '洗衣服',
                'content' => '该洗得了',
            ),
            array(
                'title' => '吃饭',
                'content' => 'why?',
            ),
        );
        $this->response($data,$this->_type,200);
    }

    //获取数据明细
    public function get_single() {

    }

    //更新数据
    public function put_single() {

    }

    //删除数据
    public function delete_single() {

    }

    //新建数据
    public function post_single() {

    }

}